<?php
class CompanyController extends AppController {

	var $name = 'Company';
	function index() {
		$lang=$this->Session->read('lang');
		$this->set('data', $this->data=$this->Company->findByLangId(0));
	}
	
	function edit() {
		//$lang=$this->Session->read('lang');
		$lang=0;
		$this->data['Company']['lang_id']=$lang;
		//pr($this->data);
		 if(!empty($this->data)) {
			if($this->Company->save($this->data)){
				$this->redirect('/home');				
			}
		}	
	}
}
?>